package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TransactionSourceMapper;
import com.ruoyi.system.domain.TransactionSource;
import com.ruoyi.system.service.ITransactionSourceService;

/**
 * 交易来源用于标识:
	Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class TransactionSourceServiceImpl implements ITransactionSourceService 
{
    @Autowired
    private TransactionSourceMapper transactionSourceMapper;

    /**
     * 查询交易来源用于标识:
	
     * 
     * @param id 交易来源用于标识:
	
     * @return 交易来源用于标识:

     */
    @Override
    public TransactionSource selectTransactionSourceById(Long id)
    {
        return transactionSourceMapper.selectTransactionSourceById(id);
    }

    /**
     * 查询交易来源用于标识:
	列表
     * 
     * @param transactionSource 交易来源用于标识:
	
     * @return 交易来源用于标识:
	
     */
    @Override
    public List<TransactionSource> selectTransactionSourceList(TransactionSource transactionSource)
    {
        return transactionSourceMapper.selectTransactionSourceList(transactionSource);
    }

    /**
     * 新增交易来源用于标识:
	
     * 
     * @param transactionSource 交易来源用于标识:
	
     * @return 结果
     */
    @Override
    public int insertTransactionSource(TransactionSource transactionSource)
    {
		System.out.println(transactionSource);
        return transactionSourceMapper.insertTransactionSource(transactionSource);
    }

    /**
     * 修改交易来源用于标识:
	
     * 
     * @param transactionSource 交易来源用于标识:
	
     * @return 结果
     */
    @Override
    public int updateTransactionSource(TransactionSource transactionSource)
    {
        return transactionSourceMapper.updateTransactionSource(transactionSource);
    }

    /**
     * 批量删除交易来源用于标识:
	
     * 
     * @param ids 需要删除的交易来源用于标识:

     * @return 结果
     */
    @Override
    public int deleteTransactionSourceByIds(Long[] ids)
    {
        return transactionSourceMapper.deleteTransactionSourceByIds(ids);
    }

    /**
     * 删除交易来源用于标识:

     * 
     * @param id 交易来源用于标识:

     * @return 结果
     */
    @Override
    public int deleteTransactionSourceById(Long id)
    {
        return transactionSourceMapper.deleteTransactionSourceById(id);
    }
}
